﻿var arrayName = [];

var combine = function() {
    var theText = document.getElementById("userDecision1").value;
    for (var i = 0; i < theText.length; i++){
        arrayName.push(theText);
    }
}

var tellMe = function() {
    var theNumber = document.getElementById("userDecision2").value;
    alert(arrayName[theNumber]);
}



// QUESTION 1
//var userDecision = function() {
//    var firsttry = document.getElementById("currentId").value;
//    arrayName.push(firsttry);
//    document.getElementById("ok").innerHTML = "";
//    for (var i = 0; i < arrayName.length; i++) {
//        document.getElementById("ok").innerHTML += arrayName[i] + "</br>";
//    }
//}


// QUESTION 0

// var userInput = function() {
//    var firstTry = document.getElementById("current").value;
//    arrayName.push(firstTry);
//}
//var callArray = function() {
//    for (var i = 0; i < arrayName.length; i++) {
//        alert(arrayName[i]);
//    }
//} */  ctrl+ k + C and ctrl + k + u